import request from '@/utils/request'

// 查询取号位置列表
export function listLocation(query) {
  return request({
    url: '/gwLocation/list',
    method: 'get',
    params: query
  })
}
export function Location(query) {
  return request({
    url: '/gwLocation/gwLocation',
    method: 'get',
    params: query
  })
}

// 查询取号位置详细
export function getLocation(locationId) {
  return request({
    url: '/gwLocation/' + locationId,
    method: 'get'
  })
}

// 新增取号位置
export function addLocation(data) {
  return request({
    url: '/gwLocation',
    method: 'post',
    data: data
  })
}

// 修改取号位置
export function updateLocation(data) {
  return request({
    url: '/gwLocation',
    method: 'put',
    data: data
  })
}

// 删除取号位置
export function delLocation(locationId) {
  return request({
    url: '/gwLocation/' + locationId,
    method: 'delete'
  })
}
